<script setup>
import { useOrderStore } from '@/stores/orderStore'
const useOrder = useOrderStore()

</script>
<template>
<el-table :data="useOrder.orderInfo" :border="parentBorder" style="width: 100%">
      <el-table-column label="订单ID" prop="orderId" />
      <el-table-column label="用户ID" prop="userId" />
      <el-table-column label="房间ID" prop="roomId" />
      <el-table-column label="订单评分" prop="star" />
      <el-table-column label="订单评价" prop="orderComments" />
      <el-table-column label="订单状态" prop="orderStatus" />
      <el-table-column label="租用时间" prop="orderTime" />
      <el-table-column label="开始时间" prop="startTime" />
      <el-table-column label="结束时间" prop="endTime" />
      <el-table-column fixed="right" label="操作">
      <template #default>
        <el-button link type="primary" size="small" @click="deleteRoom">删除</el-button>
        <el-button link type="primary" size="small" @click="changeRoom">修改</el-button>
      </template>
    </el-table-column>
    </el-table>
</template>
<style scoped></style>
